﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YouDaoNotesCodes
{
    #region 往来单位参数集合
    /// <summary>
    /// 客商列表
    /// </summary>
    public struct SyncLSWLDW
    {
        public List<LSWLDWDetails> WlDatas { get; set; }
    }
    /// <summary>
    /// 客商明细
    /// </summary>
    public struct LSWLDWDetails
    {
        /////////////【必填项】/////////////////////
        public string branchBank { get; set; }
        /// <summary>
        /// 客商更新类型，店铺接口：1新增 2更新（不包含税号）
        /// </summary>
        public string SelfDefineType { get; set; }
        /// <summary>
        /// 往来单位ID
        /// </summary>
        public string LSWLDW_LSWLDWID { get; set; }
        /// <summary>
        /// 往来单位编号
        /// </summary>
        public string LSWLDW_WLDWBH { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string LSWLDW_DWMC { get; set; }
        /// <summary>
        /// 往来单位简称
        /// </summary>
        public string LSWLDW_JC { get; set; }
        /// <summary>
        /// 地区编号
        /// </summary>
        public string LSWLDW_DQBH { get; set; }
        /// <summary>
        /// 单位类别
        /// </summary>
        public string LSWLDW_DWLB { get; set; }
        /// <summary>
        /// 单位性质
        /// </summary>
        public string LSWLDW_DWXZ { get; set; }
        /// <summary>
        /// 内部单位？
        /// </summary>
        public string LSWLDW_NBDW { get; set; }
        /// <summary>
        /// 停用？Default 0
        /// </summary>
        public string LSWLDW_TYBZ { get; set; }

        /////////////【非必填项】/////////////////////

        /// <summary>
        /// 税号
        /// </summary>
        public string LSWLDW_SH { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        public string LSWLDW_KHH { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        public string LSWLDW_YHZH { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string LSWLDW_ADDR { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string LSWLDW_PHONE { get; set; }
    }
    #endregion

    #region 同步结果集合
    public struct SyncRes
    {
        /// <summary>
        /// true 成功  false 失败
        /// </summary>
        public bool syncFlg { get; set; }
        /// <summary>
        /// error message
        /// </summary>
        public string syncMsg { get; set; }
    }
    #endregion
}
